package com.cn.jinl.domain;

import com.google.common.collect.Lists;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;
import java.util.List;

public class OnDutyBgTask {
    private String id;

    private String bgId;

    private String dutyDay;

    private String whiteDay;

    private String itemName;
    private String itemRefName;

    private String deviceCode;

    private String planName;

    private String gradeValue;

    private String thNumber;

    private String pieceNum;

    private String taskId;

    private String gongxu;

    private String remark;

    private String status;
    private String gongPrice;
    private String singlePrice;

    private Date createTime;

    private Date updateTime;

    private List<OnDutyBgTaskUser> onDutyBgTaskUsers = Lists.newLinkedList();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getBgId() {
        return bgId;
    }

    public void setBgId(String bgId) {
        this.bgId = bgId == null ? null : bgId.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public String getWhiteDay() {
        return whiteDay;
    }

    public void setWhiteDay(String whiteDay) {
        this.whiteDay = whiteDay == null ? null : whiteDay.trim();
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName == null ? null : itemName.trim();
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName == null ? null : planName.trim();
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue == null ? null : gradeValue.trim();
    }

    public String getThNumber() {
        return thNumber;
    }

    public void setThNumber(String thNumber) {
        this.thNumber = thNumber == null ? null : thNumber.trim();
    }

    public String getPieceNum() {
        return pieceNum;
    }

    public void setPieceNum(String pieceNum) {
        this.pieceNum = pieceNum == null ? null : pieceNum.trim();
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public String getGongxu() {
        return gongxu;
    }

    public void setGongxu(String gongxu) {
        this.gongxu = gongxu == null ? null : gongxu.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getItemNameCn() {
        if(StringUtils.equals(getItemName(),"1")){
            return "单多支";
        }else if(StringUtils.equals(getItemName(),"2")){
            return "伸缩";
        }else if(StringUtils.equals(getItemName(),"3")){
            return "U型";
        }
        return "";
    }

    public List<OnDutyBgTaskUser> getOnDutyBgTaskUsers() {
        return onDutyBgTaskUsers;
    }

    public void setOnDutyBgTaskUsers(List<OnDutyBgTaskUser> onDutyBgTaskUsers) {
        this.onDutyBgTaskUsers = onDutyBgTaskUsers;
    }

    public String getGongPrice() {
        return gongPrice;
    }

    public void setGongPrice(String gongPrice) {
        this.gongPrice = gongPrice;
    }

    public String getSinglePrice() {
        return singlePrice;
    }

    public void setSinglePrice(String singlePrice) {
        this.singlePrice = singlePrice;
    }

    public String getItemRefName() {
        return itemRefName;
    }

    public void setItemRefName(String itemRefName) {
        this.itemRefName = itemRefName;
    }
}